package ca.uwindsor.cs.deepweb.estimation.experiment.common;

import javax.jws.WebMethod;
import javax.jws.WebParam;

/**
 * 
 * @author Liang Jie
 */
public interface EstimationWebServiceInterfaces {

	/**
	 * Web service operation
	 * 
	 * @return all dicionaries
	 */
	@WebMethod(operationName = "getAllDictionaries")
	String[] getAllDictionaries();

	/**
	 * Web service operation
	 * 
	 * @return all Chinese Corpora
	 */
	@WebMethod(operationName = "getChineseCorpora")
	String getChineseCorpora();

	/**
	 * Web service operation
	 * 
	 * @return all Chinese dictionaries
	 */
	@WebMethod(operationName = "getChineseDictionaries")
	String[] getChineseDictionaries();

	/**
	 * Web service operation
	 * @return All Corpora
	 */
	@WebMethod(operationName = "getCorpora")
	String getCorpora();

	/**
	 * Web service operation
	 * @return All English Corpora
	 */
	@WebMethod(operationName = "getEnglishCorpora")
	String getEnglishCorpora();

	/**
	 * Web service operation
	 * @return All English Dictionaries
	 */
	@WebMethod(operationName = "getEnglishDictionaries")
	String[] getEnglishDictionaries();

	/**
	 * Web service operation
	 * @return a sample query in xml
	 */
	@WebMethod(operationName = "getSampleQueryXML")
	String getSampleQueryXML();

	/**
	 * Web service operation
	 * @param queryxml query request in xml
	 * @return result in xml
	 */
	@WebMethod(operationName = "query")
	String query(@WebParam(name = "queryxml") final String queryxml);

}
